// 使用时引用echarts
var rsvsOption = {
    title: {
          text: '',
          x: '10%',
          y: '',
          textStyle: {
            fontSize: 14,
            fontFamily: 'Microsoft Yahei',
            fontWeight: 'normal',
            color: '#4D88FF',
            rich: {
              a: {
                fontSize: 14
              }
            }
          }
        },
        grid: {
          x: '30%',
          y: '30',
          x2: '10'
        },
        xAxis: {
          type: 'category',
          splitLine: {
            show: false
          },
          data: ['1'],
          gridIndex: '0',
          axisTick: {
            show: false
          },
          axisLabel: {
            show: false
          },
          axisLine: {
            show: false
          }
        },
        yAxis: {
          gridIndex: '0',
          show: false,
          splitLine: {
            show: false
          },
          max: 0, // 设置y轴的最大值
          min: 0, // 设置最小高度
          interval: 0.1,
          // minInterval: 10,
          name: '水位',
          type: 'value'
        },
        series: [
          {
            // name: '今日水位',
            radius: '240%',
            period: 1000,
            center: ['50%', '10%'],
            color: ['rgba(214,230,253)'],
            type: 'liquidFill',
            data: [], // 值为当前水位值
            amplitude: 2,
            waveLength: '8%',
            // animationDurationUpdate : 2000,
            // animationEasingUpdate : 'cubicInOut',
            animationDuration: 0,
            animationDurationUpdate: 0,
            backgroundStyle: {
              color: 'transparent'
            },
            outline: {
              show: false
            },
            label: {
              normal: {
                show: false,
                textStyle: {
                  color: '#282536',
                  fontSize: 12
                }
              }
            }
          },
          {
            name: '坝顶高程',
            type: 'line',
            smooth: true,
            data: [],
            symbolSize: 0,
            symbolOffset: ['10%', '0'],
            markLine: {
              symbol: 'none', // 去掉箭头
              label: {
                normal: {
                  position: 'middle',
                  formatter: '{b}: {c}m',
                  textStyle: {
                    color: '#000',
                    fontSize: 12
                  }
                }
              },
              lineStyle: {
                color: '#dcdcdc',
                type: 'solid'
              },
              data: [{
                type: 'max',
                name: '坝顶高程'
              }]
            }
          },
          {
            name: '堰顶高程',
            type: 'line',
            smooth: true,
            data: [],
            symbolSize: 0,
            symbolOffset: ['10%', '0'],
            markLine: {
              symbol: 'none', // 去掉箭头
              label: {
                normal: {
                  position: 'middle',
                  formatter: '{b}: {c}m',
                  textStyle: {
                    color: '#000',
                    fontSize: 12
                  }
                }
              },
              lineStyle: {
                color: '#dcdcdc',
                type: 'solid'
              },
              data: [{
                type: 'max',
                name: '堰顶高程'
              }]
            }
          },
          {
            name: '校核洪水位',
            type: 'line',
            smooth: true,
            data: [],
            symbolSize: 0,
            symbolOffset: ['10%', '0'],
            markLine: {
              symbol: 'none', // 去掉箭头
              label: {
                normal: {
                  position: 'middle',
                  formatter: '{b}: {c}m',
                  textStyle: {
                    color: '#000',
                    fontSize: 12
                  }
                }
              },
              lineStyle: {
                color: '#dcdcdc',
                type: 'solid'
              },
              data: [{
                type: 'max',
                name: '校核洪水位'
              }]
            }
          },
          {
            name: '设计洪水位',
            type: 'line',
            smooth: true,
            data: [],
            symbolSize: 0,
            symbolOffset: ['10%', '0'],
            markLine: {
              symbol: 'none', // 去掉箭头
              label: {
                normal: {
                  position: 'middle',
                  formatter: '{b}: {c}m',
                  textStyle: {
                    color: '#000',
                    fontSize: 12
                  }
                }
              },
              lineStyle: {
                color: '#F5A847',
                type: 'dashed'
              },
              data: [{
                type: 'max',
                name: '设计洪水位'
              }]
            }
          },
          {
            name: '正常蓄水位',
            type: 'line',
            smooth: true,
            data: [],
            symbolSize: 0,
            symbolOffset: ['10%', '0'],
            markLine: {
              symbol: 'none', // 去掉箭头
              label: {
                normal: {
                  position: 'middle',
                  formatter: '{b}: {c}m',
                  textStyle: {
                    color: '#000',
                    fontSize: 12
                  }
                }
              },
              lineStyle: {
                color: '#dcdcdc',
                type: 'solid'
              },
              data: [{
                type: 'max',
                name: '正常蓄水位'
              }]
            }
          },
          {
            name: '死水位',
            type: 'line',
            smooth: true,
            data: [],
            symbolSize: 0,
            symbolOffset: ['10%', '0'],
            markLine: {
              symbol: 'none', // 去掉箭头
              label: {
                normal: {
                  position: 'middle',
                  formatter: '{b}: {c}m',
                  textStyle: {
                    color: '#000',
                    fontSize: 12
                  }
                }
              },
              lineStyle: {
                color: '#dcdcdc',
                type: 'solid'
              },
              data: [{
                type: 'max',
                name: '死水位'
              }]
            }
          }
        ]
      }
}